package Pojo;

import java.util.Objects;

//客户实体类
public class Client {
    private Integer client_id;//客户id(主键)
    private String client_name;//客户真实姓名
    private String client_idcar;//客户身份证号
    private String client_phone;//客户手机号

    public Client() {
    }

    public Client(Integer client_id, String client_name, String client_idcar, String client_phone) {
        this.client_id = client_id;
        this.client_name = client_name;
        this.client_idcar = client_idcar;
        this.client_phone = client_phone;
    }

    @Override
    public String toString() {
        return "Client{" +
                "client_id=" + client_id +
                ", client_name='" + client_name + '\'' +
                ", client_idcar='" + client_idcar + '\'' +
                ", client_phone='" + client_phone + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Client client = (Client) o;
        return Objects.equals(client_id, client.client_id) &&
                Objects.equals(client_name, client.client_name) &&
                Objects.equals(client_idcar, client.client_idcar) &&
                Objects.equals(client_phone, client.client_phone);
    }

    @Override
    public int hashCode() {
        return Objects.hash(client_id, client_name, client_idcar, client_phone);
    }

    public Integer getClient_id() {
        return client_id;
    }

    public void setClient_id(Integer client_id) {
        this.client_id = client_id;
    }

    public String getClient_name() {
        return client_name;
    }

    public void setClient_name(String client_name) {
        this.client_name = client_name;
    }

    public String getClient_idcar() {
        return client_idcar;
    }

    public void setClient_idcar(String client_idcar) {
        this.client_idcar = client_idcar;
    }

    public String getClient_phone() {
        return client_phone;
    }

    public void setClient_phone(String client_phone) {
        this.client_phone = client_phone;
    }
}
